<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" session="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
</head>
<body>
<form:form method="POST" modelAttribute="position" action="/dispatch/delete">
Are you sure to delete this position?
<br>
Stock: <c:out value="${position.symbol}"/>
<br>
Price: <c:out value="${position.purchasedPrice}"/>
<br>
Date: <fmt:formatDate value="${position.date}" pattern="MM/dd/yyyy"/>
<br>
Shares: <fmt:formatNumber type="number" minFractionDigits="0" maxFractionDigits="0" value="${position.volume}" />
<form:hidden path="id"/>
<form:hidden path="purchasedPrice"/>
<form:hidden path="volume"/>
<form:hidden path="symbol"/>
<form:hidden path="date"/>
<form:hidden path="transactionId"/>
<br>
<input type="submit" name="submit" value="DELETE"></td>
<input type="button" name="Cancel" value="CANCEL" onclick="document.location.href='/dispatch/portfolio'"/>
</form:form>
</body>
</html>